home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / dvlprstc.hqx / Developer Stack 1.3r / card_36198.txt < prev    next >
Encoding:
Text File  |  1991-04-30  |  1.2 KB  |  51 lines

  1. -- card: 36198 from stack: in.3r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3837
  5. -- name: SortReals
  6.  
  7.  
  8. -- part contents for background part 5
  9. ----- text -----
  10. SortReals
  11.  
  12. -- part contents for background part 6
  13. ----- text -----
  14. The SortReals XFCN will sort real numbers contained in a field into ascending order.  The numbers should be separated by spaces.    (The numbers are "words" in HC parlance.).  SortReals works on any Mac.  If you are using a Mac II then see SortRealsII*.
  15.  
  16. This XFCN is FreeWare.  You may use it freely in any of your stacks, for your own, or commercial use or extend its capablities to return averages or whatever.
  17.  
  18.         SHOW ME YOUR XCMD
  19.              SOURCE CODE!
  20.  
  21. SortReals was written in LightspeedΓäó Pascal and SortRealsII was written in MPW Pascal.
  22.  
  23. George Coyne
  24.  
  25. GENIE: GWCOYNE
  26. CIS: 75776,1463
  27.  
  28. -- part contents for background part 7
  29. ----- text -----
  30. Syntax:
  31.  
  32. SortReals(<input>) 
  33.  
  34. Where:
  35. input:  Any HyperCard Container
  36.  
  37. The functions return a sorted list.
  38.  
  39. Example:
  40. put SortReals(input) into output
  41.  
  42. output may be the same container as input.
  43.  
  44.  
  45. -- part contents for background part 10
  46. ----- text -----
  47. 38
  48.  
  49. -- part contents for background part 27
  50. ----- text -----
  51. XFCN